#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
using namespace std;

int main(){
    ifstream ifs("ClearedData.csv",ios::in);
    string s;
    string tmp;
    vector<string> line;
    vector<vector<string>>dataset;
    ofstream ofs("output.csv");
    while(getline(ifs,s)){
        for(int i=0;i<s.size();i++){
            if(s[i]==','){
                s.replace(i,1," ");
            }
        }
        istringstream iss(s);
        while(iss>>tmp){
            line.push_back(tmp);
        }
        if(line.size()==1)continue;
        for(vector<string>::iterator it=line.begin();it!=line.end();it++){
            ofs<<*it<<",";
        }
        ofs<<endl;
        dataset.push_back(line);
        line.clear();
    }
    ifs.close();
    return 0;
}